/**
 * Created by ruwang on 10/19/14.
 */
constant = {
    NUM: {
        MAX_FILE_COUNT: 4000,
        MIN_FILE_COUNT: 2048,
        AES_KEY_SIZE: 32,
        AES_IV_SIZE: 32
    },
    TEXT: {
        AES_SUIT : 'aes-256-cbc',
        SELECT_YOUR_OPTION: 'Please select your option : ',
        OPTION_EN_SPLATTER_FILE: 'I want to splatter a file',
        OPTION_DE_SPLATTER_FILE: 'I want to de-splatter a file (Take the original file)',
        ERRORS : {
            INCORRECT_OPTION : '----> [ You have selected an incorrect Option ! ] <----'
        }
    }
}

global.config = {     FINISHED_WORK_FOLDER : 'work/finished',
    LOG : 'log.txt',
    MAX_BUFFER_TO_READ: 1,
    BUFFER_SIZE_INCREMENT_VALUE : 100,
    AES_KEY : null,
    AES_IV : null
}
common = {
    optionsAndAnswers: {
        mainPage: {
            optionSet: {
                splatterFile: {
                    display: constant.TEXT.OPTION_EN_SPLATTER_FILE,
                    option: 1,
                    callback: require('../en-splatter/EnSplatter.js').mainCallBack
                },
                deSplatterFile: {
                    display: constant.TEXT.OPTION_DE_SPLATTER_FILE,
                    option: 2,
                    callback: require('../de-splatter/DeSplatter.js').mainCallBack
                }
            }
        }
    },

    logMe : function log(text) {/*TODO : implement logs*/ }
}

module.exports.Common  = common;
module.exports.Constants = constant;